/*
 * @Author: zhoulei0232
 * @Date: 2022-12-09 12:05:43
 * @LastEditTime: 2023-03-24 00:02:49
 * @LastEditors: zhoulei0232
 * @Description:
 */
import request from "@/utils/request";

 
// 查询列表
export function listAllMenu(query) {
  return request({
    url: "/api/menu/listAll",
    method: "get",
    params: query,
  });
}

// 编辑
export function updateMenu(data) {
  return request({
    url: "/api/menu/update",
    method: "post",
    data: data,
  });
}

 

// 新增
export function addMenu(data) {
  return request({
    url: "/api/menu/add",
    method: "post",
    data: data,
  });
}

 